function checkAll(formId, listName, thisStatus){
    var list = document.getElementById(formId).elements[listName];
    if(list != null){
        var listSize = list.length;
        if(listSize == undefined) {
            list.checked = thisStatus.checked ? true : false;
        } else {
            if(listSize > 0) { //Have one or more element
                for(i = 0; i < listSize; i++) {
                    if (!list[i].disabled) {
                        list[i].checked = thisStatus.checked ? true : false;
                    }
                }
            }
        }
    }
}


